package com.module.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * rabbit配置
 */
@Configuration
public class RabbitConfig {

    @Bean
    public Queue testQueue(){
        return new Queue("testqueue");
    }
}
